<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of playerModel
 *
 * @author prostar
 */
class playerModel extends CI_Model {

	protected $type = 'mongo';
	protected $dbkey = 'test';

	//public function __construct($db_config) {
	//	parent::__construct($db_config);
	//}

	public function index() {
		return __METHOD__;
	}

	public function get($key = 'test') {
		$key = $key . '_' . $this->sec;
		return $this->db->get($key);
	}

	public function set($key = 'test', $value = 'testval') {
		$key = $key . '_' . $this->sec;
		return $this->db->set($key, $value);
	}

}
